<div class="Transactions form">
<?php echo Form::close(); ?>
    <?php 
    echo Form::open();
    echo Form::label('Type:');
    echo Form::select('type',$transaction->categories->type,array(1=>'Earn',2=>'Spent'));
    echo Form::label('Category_id:');
    echo Form::select('category_id',@$transaction->categories->id,$option_categories);
    echo Form::label('Wallet_id:');
    echo Form::select('wallet_id',@$transaction->wallet_id,$option_wallet);  //value_wallets is seted to  default wallets value
    echo Form::label('Money:');
    echo Form::input('money',$transaction->money);
    echo Form::label('With who:');
    echo Form::input('with_who',$transaction->with_who);
    ?>
     <br/><br/> <?php 
    echo Form::submit();
    echo Form::close();

    echo @$message; ?>
</div>    
<div class="actions">
	<h3><?php echo 'Actions';?></h3>
	<ul>
		<li><?php echo Html::anchor('transactions/add', 'New Transactions'); ?></li>
		
	</ul>
</div>